package com.ywm.service.impl;

import com.ywm.dto.TopUser;
import com.ywm.entity.User;
import com.ywm.mapper.UserMapper;
import com.ywm.service.UserSrevice;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserSrevice {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<TopUser> getTopFiveUser() {
        return userMapper.getTopFiveUser();
    }
}
